<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title></title>
	<include file="Public/header" />
</head>
<body>
<script type="text/javascript">
	var getstorageUrl="{:U('Stock/get_scrap_in')}";
	
	var storageDelUrl="{:U('Stock/checkstockscrapDel')}";
	var storageExamineUrl="{:U('Stock/examineCheckstockscrap')}";
	var storageClearUrl="{:U('Stock/checkstockscrapClear')}";
	var storageUndoUrl="{:U('Stock/checkstockscrapUndo')}";
</script>
<script type="text/javascript" src="__PUBLIC__/default/js/scrap_in.js"></script>
	<table id="storageDatagrid" toolbar="#storage_tb"></table>
	<!-- 添加 -->
	<div id="storageAddDialog" class="easyui-dialog" style="width:1000px;height:700px;"
        closed="true" buttons="#storageAddButtons"  modal="true">
         <table id="aoDatagrid" toolbar="#ao_tb"></table>
    </div>
    <div id="storageAddButtons">
    	<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" onclick="storageObj.add('{:U('Stock/checkstockscrapAdd')}')" style="width:90px">添加</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#storageAddDialog').dialog('close')" style="width:90px">取消</a>
    </div>
    <!-- /添加 -->
	<!-- 编辑 -->
    <div id="storageEditDialog" class="easyui-dialog" style="width:400px;padding:10px 20px"
            closed="true" buttons="#storageEditButtons"  modal="true">
        <form id="storageEditForm" method="post" novalidate>
			<div class="fitem">
                <label>单号</label>
				<input name="id"  type="hidden" />
                <input name="order_no" class="easyui-textbox" style="background:#ccc;" data-options="readonly:true,required:true,delay:1000,height:30,validType:['length[1,30]']" />
            </div>
			<div class="fitem">
                <label>商品编号</label>
                <input name="goods_no" class="easyui-textbox" style="background:#ccc;" data-options="readonly:true,required:true,delay:1000,height:30,validType:['length[1,30]']" />
            </div>
            <div class="fitem">
                <label>商品名称</label>
                <input name="goods_name"  class="easyui-textbox" style="background:#ccc;" data-options="required:true,delay:1000,height:30,validType:['length[2,300]']" />
            </div>
			<div class="fitem">
                <label>数量</label>
                <input name="goods_nums"  class="easyui-textbox" style="background:#ccc;" data-options="required:true,delay:1000,height:30,validType:['length[1,10]']" />   
            </div>
			<div class="fitem">
                <label>备注</label>
                <input name="mark" class="easyui-textbox" style="background:#ccc;" data-options="multiline:true,delay:1000,height:100,validType:['length[2,30]']" />   
            </div>
         </form>
    </div>
    <div id="storageEditButtons">
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" onclick="storageObj.save('{:U('Stock/checkstockscrapSave')}')" style="width:90px">更新</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:
    $('#storageEditDialog').dialog('close')" style="width:90px">取消</a>
    </div>
    <!-- /编辑 -->
    <!-- 搜索栏 -->
    <div id="storage_tb">
        <form id="storageSearchForm" method="post" novalidate>
             <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon icon-all" plain="true" onclick="storageObj.showAll()">全部</a>     
			 商品编号:<input class="easyui-textbox" name="goods_no" style="width:150px;height:30px;"> 
			 商品名称:<input class="easyui-textbox" name="goods_name" style="width:150px;height:30px;"> 
			<a href="#" class="easyui-linkbutton searchBar" iconCls="icon-search" style="height:30px;">搜索</a>
        </form>
		<!-- <a href="javascript:void(0)" onclick="storageObj.infoBar()" class="easyui-linkbutton" data-options="iconCls:'icon-information',plain:true">详情</a> -->
		
		<a href="javascript:void(0)" onclick="storageObj.addBar()" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true">添加</a>
        <a href="javascript:void(0)" onclick="storageObj.editBar()" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true">修改</a>
        <a href="javascript:void(0)" onclick="storageObj.removeBar()" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true">删除</a>
		<a href="javascript:void(0)" onclick="storageObj.reloadBar()" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true">刷新</a>
		<a href="javascript:void(0)" onclick="storageObj.saveBar()" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true">保存</a>
        <a href="javascript:void(0)" onclick="storageObj.examineBar(1)" class="easyui-linkbutton" data-options="iconCls:'icon-key',plain:true">审核通过</a>
		<a href="javascript:void(0)" onclick="storageObj.examineBar(2)" class="easyui-linkbutton" data-options="iconCls:'icon-key_delete',plain:true">审核不通过</a>
		<a href="javascript:void(0)" class="easyui-menubutton" data-options="menu:'#storage_mm1',iconCls:'icon-recycle'">回收站</a>
		<div id="storage_mm1" style="width:150px;">
			<div onclick="storageObj.recycle()">查看</div>
			<div onclick="storageObj.undoBar()" data-options="iconCls:'icon-undo'">恢复</div>
			<div onclick="storageObj.clearBar()" data-options="iconCls:'icon-remove'">删除</div>
		</div>
    </div>
    <!-- /搜索栏 -->
	<!-- 商品搜索栏 -->
    <div id="ao_tb">
        <form id="goodsSearchForm" method="post" novalidate>
             <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon icon-all" plain="true" onclick="storageObj.showgoodsAll()">全部</a>
			 商品编号:<input class="easyui-textbox" name="goods_no" style="width:150px;height:30px;"> 
			 商品名称:<input class="easyui-textbox" name="goods_name" style="width:150px;height:30px;"> 
			<a href="#" class="easyui-linkbutton searchgoodsBar" iconCls="icon-search" style="height:30px;">搜索</a>
        </form>
    </div>
    <!-- /搜索栏 -->
</body>